package com.umeox.zikrringtest

import android.app.Application
import com.umeox.logger.UMLogger
import com.umeox.sdk_ring.RingLoggerPrinter
import com.umeox.sdk_ring.UMRingSdk

class App : Application() {
    companion object {
        lateinit var application: Application
    }

    override fun onCreate() {
        super.onCreate()
        UMLogger.initLogger()
        CrashHandler.init(this)
        application = this
        application.getExternalFilesDir(null)
        UMRingSdk.init(this, log = object : RingLoggerPrinter {
            override fun log(priority: Int, tag: String, message: String) {
                UMLogger.d("UMRing_$tag", message)
            }
        })
    }
}